package test;

public abstract class zuoye1 {
                 public abstract void eat();
                 public abstract void sleep();

            public static void main(String[] args) {
        zuoye1 a=new zuoye1() {
            public void eat() {
                System.out.println("吃");
            }

            public void sleep() {
                System.out.println("睡");
            }
        };
        a.eat();
        a.sleep();
    }
}
